package com.zsc.wxm.ysh.anjo.house.feign;

import com.zsc.wxm.ysh.anjo.house.feign.fallback.MailServiceImpl;
import com.zsc.wxm.ysh.anjo.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 描述：
 *
 * @author playmaker
 * @since 2021/2/20 22:55
 */
@FeignClient(value = "anjo-sms-service", fallback = MailServiceImpl.class)
public interface MailService {

    /**
     * 发送看房请求邮件
     *
     * @param code
     * @param email
     * @return
     */
    @PostMapping("/common/mail/send-view-request-email")
    Result sendViewRequestEmail(@RequestParam("code") String code, @RequestParam("email") String email);
}
